package com.example.spingbootvue.service.Resume;

import com.example.spingbootvue.entity.Resumemsg;
import com.example.spingbootvue.mapper.UserResumeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Insertaccountservice {

    @Autowired
    UserResumeMapper  userResumeMapper;


    public  int Insertaccount(String account) {
        Resumemsg resumemsg=userResumeMapper.selectaccount(account);
        if(resumemsg!=null){
            return 0;
        }else {
            return  userResumeMapper.insertbyaccount(account);
        }
    }
}
